Christian Hergert [Thu, 10 Jun 2021 21:01:41 +0000 (14:01 -0700)]
window: clear move_focus when focus is already set
This can get set in other places, so we need to ensure it is cleared so
that an after-paint handler does not move the focus to a new widget.
Matthias Clasen [Thu, 10 Jun 2021 13:30:25 +0000 (13:30 +0000)]
Merge branch 'actionable-fixes' into 'master'
tests: Fix check vs toggle button confusion
Closes #4022
See merge request GNOME/gtk!3656
Matthias Clasen [Thu, 10 Jun 2021 12:37:13 +0000 (08:37 -0400)]
checkbutton: Fix actionable state tracking
If we have a GAction as model, we just have to
call gtk_action_helper_activate() and let
the action helper handle the state updates,
Fixes: #4022
Matthias Clasen [Thu, 10 Jun 2021 12:36:08 +0000 (08:36 -0400)]
togglebutton: Fix actionable state tracking
If we have a GAction as model, we just have to let
the action helper handle the state updates. GtkButton
already calls gtk_action_helper_activate() for us.
Matthias Clasen [Thu, 10 Jun 2021 12:35:24 +0000 (08:35 -0400)]
button: Add a private getter for the action helper
GtkToggleButton needs to know if it needs to actively
maintain its state, or defer to the action helper.
Matthias Clasen [Thu, 10 Jun 2021 12:10:25 +0000 (08:10 -0400)]
testgaction: Add more widgetry
Add some toggle and check buttons to test that they
work as expected as GtkActionables.
Matthias Clasen [Thu, 10 Jun 2021 11:55:45 +0000 (07:55 -0400)]
Fix the GAction test
We weren't setting the state of the stateful actions.
Matthias Clasen [Thu, 10 Jun 2021 11:49:08 +0000 (07:49 -0400)]
tests: Fix check vs toggle button confusion
Check buttons aren't toggle buttons anymore.
Matthias Clasen [Wed, 9 Jun 2021 22:23:47 +0000 (18:23 -0400)]
4.3.1
Matthias Clasen [Wed, 9 Jun 2021 17:30:02 +0000 (17:30 +0000)]
Merge branch 'ebassi/docs-for-master' into 'master'
docs: Mention Window::close-request in the migration guide
See merge request GNOME/gtk!3655
Emmanuele Bassi [Wed, 9 Jun 2021 17:11:10 +0000 (18:11 +0100)]
docs: Mention the ::damage-event signal in the migration guide
There is no replacement for damage event tracking.
Emmanuele Bassi [Wed, 9 Jun 2021 17:08:31 +0000 (18:08 +0100)]
docs: Mention GdkSurface:mapped
It replaces the ::map-event and ::unmap-event signals on GtkWidget.
Emmanuele Bassi [Wed, 9 Jun 2021 17:03:12 +0000 (18:03 +0100)]
docs: Mention Window::close-request in the migration guide
The Widget::delete-event signal was moved to Window::close-request.
Matthias Clasen [Wed, 9 Jun 2021 12:59:46 +0000 (12:59 +0000)]
Merge branch 'ci-install-build' into 'master'
Make a standalone hello world
See merge request GNOME/gtk!3652
Matthias Clasen [Wed, 9 Jun 2021 11:10:13 +0000 (07:10 -0400)]
ci: Update the image
v32 of the image includes wayland-protocols 1.21, and
other updates from Fedora 34.
While we are at it, drop gtk-doc from the image, and drop
the separate DOCS_IMAGE - no longer used.
Matthias Clasen [Wed, 9 Jun 2021 11:35:25 +0000 (07:35 -0400)]
ci: Collect hello build logs
Matthias Clasen [Tue, 8 Jun 2021 21:39:34 +0000 (17:39 -0400)]
ci: Test building against installed GTK
This is meant to ensure that we e.g. install the
right header files, and so on.
Matthias Clasen [Tue, 8 Jun 2021 21:26:36 +0000 (17:26 -0400)]
Make a standalone hello world
We want to test building against the installed GTK
in ci, so lets add a standalone project.
Matthias Clasen [Tue, 8 Jun 2021 17:17:45 +0000 (17:17 +0000)]
Merge branch 'row-activated-annotation' into 'master'
treeview: Add a few missing annotations
Closes #3828
See merge request GNOME/gtk!3647
Matthias Clasen [Tue, 8 Jun 2021 14:54:26 +0000 (14:54 +0000)]
Merge branch 'wip/carlosg/spin-button-swipe-gesture' into 'master'
spinbutton: Connect swipe gesture to the text entry
Closes #4008
See merge request GNOME/gtk!3649
Carlos Garnacho [Tue, 8 Jun 2021 13:09:37 +0000 (15:09 +0200)]
spinbutton: Mind the step in the swipe gesture
The swipe gesture forces values in the spin button that are
"impossible" according to the adjustment. This can break things
in creative ways.
Ensure the steps provided are always multiples of the adjustment
step value, and keep the remainder for further interaction.
Carlos Garnacho [Tue, 8 Jun 2021 13:06:29 +0000 (15:06 +0200)]
spinbutton: Connect swipe gesture to the text entry
In the GTK3 days, the spin button was an entry, with buttons on
top, and the swipe gesture affected the input on the entry bits.
Now the spin button is a container, so this gesture in the capture
phase applies to all contained children (incl. buttons).
Attach this gesture to the entry itself, so the buttons are left
outside this business. The gesture is still in the capture phase
in order to prevent text selection/edition/etc to happen.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4008
Matthias Clasen [Tue, 8 Jun 2021 12:59:57 +0000 (12:59 +0000)]
Apply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Tue, 8 Jun 2021 12:59:38 +0000 (12:59 +0000)]
Apply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Tue, 8 Jun 2021 12:09:01 +0000 (12:09 +0000)]
Merge branch 'password-entry-buffer' into 'master'
Install gtkpasswordentrybuffer.h
See merge request GNOME/gtk!3646
Matthias Clasen [Tue, 8 Jun 2021 11:57:55 +0000 (07:57 -0400)]
treeview: Documentation tweaks
Matthias Clasen [Tue, 8 Jun 2021 11:49:06 +0000 (07:49 -0400)]
Install gtkpasswordentrybuffer.h
Matthias Clasen [Tue, 8 Jun 2021 11:25:12 +0000 (11:25 +0000)]
Merge branch 'password-entry-buffer' into 'master'
Make GtkPasswordEntryBuffer public
See merge request GNOME/gtk!3645
Matthias Clasen [Tue, 8 Jun 2021 11:25:11 +0000 (11:25 +0000)]
Make GtkPasswordEntryBuffer public
Matthias Clasen [Mon, 7 Jun 2021 18:10:12 +0000 (18:10 +0000)]
Merge branch 'ebassi/issue-3892' into 'master'
a11y: Update the level property for tree expanders
Closes #3892
See merge request GNOME/gtk!3470
Emmanuele Bassi [Mon, 7 Jun 2021 14:53:04 +0000 (14:53 +0000)]
Merge branch 'glib-main' into 'master'
subprojects: Use GLib main branch
See merge request GNOME/gtk!3642
Philip Withnall [Mon, 7 Jun 2021 13:56:49 +0000 (14:56 +0100)]
subprojects: Use GLib main branch
GLib upstream has renamed its `master` branch to `main`.
See https://gitlab.gnome.org/GNOME/glib/-/issues/2348.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Matthias Clasen [Sun, 6 Jun 2021 12:24:52 +0000 (08:24 -0400)]
treeview: Add a few missing annotations
gtk_tree_view_row_activated and the ::row-activated signal
can (and do) receive NULL for the column occasionally.
This is an introspection api change.
Fixes: #3828
Matthias Clasen [Sat, 5 Jun 2021 22:13:21 +0000 (22:13 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Docs: Tweaks
Closes #3638
See merge request GNOME/gtk!3639
Matthias Clasen [Sat, 5 Jun 2021 21:56:35 +0000 (17:56 -0400)]
gtk-builder-tool: Replace can-focus with focusable
The focusable property has the meaning that can-focus had
in GTK 3.
Update tests, and mention this in the migration guide.
Fixes: #3638
Matthias Clasen [Sat, 5 Jun 2021 21:36:02 +0000 (17:36 -0400)]
Docs: Tweaks
Remove some more redundant "or NULL" blurbs.
Matthias Clasen [Sat, 5 Jun 2021 21:36:06 +0000 (21:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
popovermenu: doc tweaks
See merge request GNOME/gtk!3638
Matthias Clasen [Sat, 5 Jun 2021 21:19:39 +0000 (17:19 -0400)]
popovermenu: doc tweaks
Matthias Clasen [Sat, 5 Jun 2021 13:36:10 +0000 (13:36 +0000)]
Merge branch 'submenu-action-fixes' into 'master'
Submenu action fixes
Closes #3721
See merge request GNOME/gtk!3272
Matthias Clasen [Sat, 5 Jun 2021 13:05:15 +0000 (13:05 +0000)]
Merge branch 'msvc-aarch64' into 'master'
gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
See merge request GNOME/gtk!3637
Matthias Clasen [Mon, 8 Mar 2021 05:43:43 +0000 (00:43 -0500)]
menusectionbox: Fix submenu-action for nested menus
We were not updating the state of submenu-actions
for nested submenus.
Fixes: #3721
Matthias Clasen [Mon, 8 Mar 2021 05:46:30 +0000 (00:46 -0500)]
popovermenubar: Make submenu-actions work
We were not updating submenu-action state
for items in menubars.
Matthias Clasen [Mon, 8 Mar 2021 05:45:35 +0000 (00:45 -0500)]
menutrackeritem: Make submenu-actions work again
This broke when GtkActionMuxer stopped being a
GActionGroup.
Matthias Clasen [Mon, 8 Mar 2021 05:43:03 +0000 (00:43 -0500)]
bloatpad: Bring back the menubar
This was lost at some point.
Matthias Clasen [Sat, 5 Jun 2021 12:47:08 +0000 (12:47 +0000)]
Merge branch 'powimod_icon' into 'master'
Load icon from executable on Windows
Closes #3713
See merge request GNOME/gtk!3326
Chun-wei Fan [Sat, 5 Jun 2021 07:37:52 +0000 (15:37 +0800)]
gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio
__popcnt() is not supported for ARM nor ARM64 Visual Studio builds, so we must
use the fallback implementation as intrinsics are not supported for this
purpose on ARM/ARM64 Visual Studio builds.
Matthias Clasen [Sat, 5 Jun 2021 01:47:24 +0000 (01:47 +0000)]
Merge branch 'ci-file-filters' into 'master'
GtkFileFilter: Allow case-insensitive patterns
Closes #3705
See merge request GNOME/gtk!359
Matthias Clasen [Sat, 5 Jun 2021 01:19:39 +0000 (01:19 +0000)]
Merge branch 'imcontext-ignore-more-keysyms' into 'master'
imcontext: Ignore more keysyms
See merge request GNOME/gtk!3634
Matthias Clasen [Fri, 4 Jun 2021 22:34:01 +0000 (18:34 -0400)]
Add GtkFileFilter tests
Matthias Clasen [Fri, 4 Jun 2021 03:55:48 +0000 (23:55 -0400)]
GtkFileFilter: Add suffix matches
This is less flexible than a glob pattern, but it is
explicitly case-insensitive, to match the behavior
on Windows.
Fixes: #3705
Matthias Clasen [Fri, 4 Jun 2021 03:50:09 +0000 (23:50 -0400)]
Add a helper to make case-insensitive globs
This will be used in GtkFileFilter in the future.
Tests included.
Matthias Clasen [Fri, 4 Jun 2021 23:01:57 +0000 (19:01 -0400)]
imcontext: Ignore more keysyms
It finally dawned on my that #3673 is just another
case of unexpected keysyms getting sent our way via
fringe XKB features.
Ignore them all!
Matthias Clasen [Fri, 4 Jun 2021 20:24:23 +0000 (20:24 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Mention <packing> in migration guide
Closes #3950 and #2271
See merge request GNOME/gtk!3630
Matthias Clasen [Fri, 4 Jun 2021 20:24:09 +0000 (20:24 +0000)]
Merge branch 'master' into 'matthiasc/for-master'
# Conflicts:
# docs/reference/gtk/migrating-3to4.md
Matthias Clasen [Fri, 4 Jun 2021 13:47:26 +0000 (09:47 -0400)]
icontheme: Add detail to the 'not found' message
Name the icon theme we're using.
Fixes: #2271
Matthias Clasen [Fri, 4 Jun 2021 12:58:12 +0000 (08:58 -0400)]
Clean up some comments
These XXX comments aren't useful enough to keep.
Matthias Clasen [Fri, 4 Jun 2021 12:44:37 +0000 (08:44 -0400)]
Add a doc comment for gsk_rounded_rect_is_circular
Matthias Clasen [Fri, 4 Jun 2021 13:21:37 +0000 (13:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Mention <packing> in migration guide
Closes #3950
See merge request GNOME/gtk!3629
Matthias Clasen [Fri, 4 Jun 2021 12:29:23 +0000 (08:29 -0400)]
wayland: Add a comment
I just had to debug this to rediscover how it works, so
add a comment for next time.
Matthias Clasen [Fri, 4 Jun 2021 12:29:23 +0000 (08:29 -0400)]
wayland: Add a comment
I just had to debug this to rediscover how it works, so
add a comment for next time.
Matthias Clasen [Fri, 4 Jun 2021 12:06:18 +0000 (08:06 -0400)]
docs: Escape some xml tags
When mentioning xml tags in markdown, we must write
them as `<foo>`, or they will come out mangled.
Matthias Clasen [Fri, 4 Jun 2021 11:41:25 +0000 (07:41 -0400)]
docs: Mention <packing> in migration guide
Add another hint for what to do with child properties.
Fixes: #3950
Matthias Clasen [Fri, 4 Jun 2021 11:41:25 +0000 (07:41 -0400)]
docs: Mention <packing> in migration guide
Add another hint for what to do with child properties.
Fixes: #3950
Matthias Clasen [Fri, 4 Jun 2021 04:43:20 +0000 (04:43 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
fnmatch: Support case-folding
See merge request GNOME/gtk!3628
Matthias Clasen [Fri, 4 Jun 2021 04:02:48 +0000 (04:02 +0000)]
Merge branch 'gtk_combo_box_with_entry_docs_update' into 'master'
Documentation update for combo_box_new_with_entry
See merge request GNOME/gtk!3605
DarkTrick [Fri, 4 Jun 2021 04:02:48 +0000 (04:02 +0000)]
Documentation update for combo_box_new_with_entry
Matthias Clasen [Fri, 4 Jun 2021 03:33:33 +0000 (23:33 -0400)]
Move fnmatch testcases to the testsuite
We have a well-working way to test internal
apis now, lets use it for these tests.
Matthias Clasen [Fri, 4 Jun 2021 03:55:30 +0000 (23:55 -0400)]
fnmatch: Support case-folding
This will be used in GtkFileFilter in the future.
Update all callers.
Matthias Clasen [Fri, 4 Jun 2021 02:45:25 +0000 (02:45 +0000)]
Merge branch 'bilelmoussaoui/markdown-links' into 'master'
docs: use markdown syntax for hyperlinks
See merge request GNOME/gtk!3589
Matthias Clasen [Fri, 4 Jun 2021 02:21:33 +0000 (02:21 +0000)]
Merge branch 'GtkCellLayoutWordingImprovement' into 'master'
Added information, that "attributes" refer to CellRenderer "properties".
See merge request GNOME/gtk!3602
DarkTrick [Fri, 4 Jun 2021 02:21:31 +0000 (02:21 +0000)]
Added information, that "attributes" refer to CellRenderer "properties".
Matthias Clasen [Fri, 4 Jun 2021 02:01:53 +0000 (02:01 +0000)]
Merge branch 'fix-appwindow-allocate' into 'master'
applicationwindow: Allocate tooltips
Closes #3997
See merge request GNOME/gtk!3627
Matthias Clasen [Fri, 4 Jun 2021 01:53:12 +0000 (01:53 +0000)]
Apply 1 suggestion(s) to 1 file(s)
Matthias Clasen [Fri, 4 Jun 2021 01:43:13 +0000 (21:43 -0400)]
applicationwindow: Allocate tooltips
GtkApplicationWindows size_allocate does not chain
up if the menubar is visible; don't forget to allocate
the tooltip window in that case.
Fixes: #3997
Matthias Clasen [Thu, 3 Jun 2021 21:59:26 +0000 (21:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Cosmetics: Eradicate gdouble
See merge request GNOME/gtk!3626
Matthias Clasen [Thu, 3 Jun 2021 21:40:49 +0000 (17:40 -0400)]
Cosmetics: Eradicate gint
Remove a handful of errant uses of gint.
Matthias Clasen [Thu, 3 Jun 2021 18:38:17 +0000 (14:38 -0400)]
Cosmetics: Eradicate gdouble
Remove 3 errant uses of gdouble.
Matthias Clasen [Thu, 3 Jun 2021 19:37:23 +0000 (19:37 +0000)]
Merge branch 'primary-menu-button' into 'master'
menubutton: Enable F10 for primary menus
See merge request GNOME/gtk!3580
Matthias Clasen [Thu, 3 Jun 2021 18:10:06 +0000 (18:10 +0000)]
Merge branch 'wip/carlosg/no-early-popup-ungrabs' into 'master'
gdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons
See merge request GNOME/gtk!3625
Emmanuele Bassi [Thu, 3 Jun 2021 15:23:45 +0000 (15:23 +0000)]
Merge branch 'akamfoad/readme-link-fixes' into 'master'
Update broken links in README.md
Closes #4001
See merge request GNOME/gtk!3623
Carlos Garnacho [Thu, 3 Jun 2021 14:18:28 +0000 (16:18 +0200)]
gdk/wayland: Break only implicit grabs on wl_pointer.leave w/ pressed buttons
The releasing of grabs while a button is pressed (e.g. after starting dnd, or
dragging the window, or going to overview with a pressed button, etc...) was
generalized here in https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1879.
However we shouldn't break all grabs here. In the case of grabbing popups,
compositors will still emit crossing events between client surfaces (e.g.
popping up and selecting a menu item via press-drag-release), breaking all
grabs here means inconsistent client state, that was
https://gitlab.gnome.org/GNOME/gtk/-/issues/2746.
That was fixed in mutter, by essentially making implicit grabs
owner_events=FALSE, however that breaks the mentioned use pattern entirely.
Mutter is changing this behavior back, so GTK should handle these crossing
events.
The grab that we are interested in breaking here is the implicit pointer
one. Popups will be dismissed via other means if the compositor says their
active grab needs breaking. This still leaves dnd/move/resize drags in
one place, while not allowing #2746 to happen with popups.
Akam Foad [Thu, 3 Jun 2021 14:22:06 +0000 (14:22 +0000)]
Changing old Gtk4 link to the new one hosted in gtk docs
Akam Foad [Thu, 3 Jun 2021 14:02:59 +0000 (14:02 +0000)]
Update broken links in README.md
Updated Release notes links from https://developer.gnome.org/gtkX/unstable/YYYY.html
to https://developer.gnome.org/gtkX/stable/YYYY.html in the README.md file in the root
folder.
Closes #4001
Emmanuele Bassi [Thu, 3 Jun 2021 10:32:01 +0000 (10:32 +0000)]
Merge branch 'ebassi/doc-fixes' into 'master'
Small doc fixes
See merge request GNOME/gtk!3622
Emmanuele Bassi [Thu, 3 Jun 2021 08:31:13 +0000 (09:31 +0100)]
docs: Fix link to the interactive debugging section
It's in the "running" document.
Emmanuele Bassi [Thu, 3 Jun 2021 08:11:09 +0000 (09:11 +0100)]
docs: Fix the license field
It's LGPL-2.1-or-later, not GPL.
Matthias Clasen [Wed, 2 Jun 2021 20:21:57 +0000 (20:21 +0000)]
Merge branch 'wip/chergert/fix-use-after-free-switcher' into 'master'
stackswitcher: clear timer when widget id disposed
See merge request GNOME/gtk!3621
Matthias Clasen [Wed, 2 Jun 2021 20:13:16 +0000 (20:13 +0000)]
Merge branch 'macos-menubar' into 'master'
macos: fix weird menubar rendering.
Closes #3967
See merge request GNOME/gtk!3607
Christian Hergert [Wed, 2 Jun 2021 17:19:42 +0000 (10:19 -0700)]
stackswitcher: clear timer when widget id disposed
If the widget is disposed while the cursor has a drag timeout queued, it
can activate after finalization.
Matthias Clasen [Wed, 2 Jun 2021 14:57:52 +0000 (14:57 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
x11: Be more careful with NVIDIA workaround
See merge request GNOME/gtk!3620
Matthias Clasen [Wed, 2 Jun 2021 11:15:10 +0000 (11:15 +0000)]
Merge branch 'entry-docs-typo' into 'master'
entry: Fix a typo in the docs
See merge request GNOME/gtk!3619
Matthias Clasen [Wed, 2 Jun 2021 10:47:27 +0000 (06:47 -0400)]
entry: Fix a typo in the docs
Matthias Clasen [Wed, 2 Jun 2021 10:33:50 +0000 (10:33 +0000)]
Merge branch 'wip/exalm/treeview-click' into 'master'
treeview: Don't handle clicks on any child widgets
Closes #3996
See merge request GNOME/gtk!3618
Matthias Clasen [Wed, 2 Jun 2021 10:16:17 +0000 (10:16 +0000)]
Merge branch 'box-orientation' into 'master'
progressbar: Avoid redundant storage
See merge request GNOME/gtk!3617
Alexander Mikhaylenko [Wed, 2 Jun 2021 08:45:11 +0000 (13:45 +0500)]
treeview: Don't handle clicks on any child widgets
We already skip them on the edited cell widget, but it's also a problem for
header buttons. Overall, there's no real reason to let it propagate here.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3996
Matthias Clasen [Tue, 1 Jun 2021 19:35:15 +0000 (15:35 -0400)]
spinbutton: Avoid redundant storage
GtkBoxLayout stores the orientation; no need for
GtkSpinButton to duplicate that.
Matthias Clasen [Tue, 1 Jun 2021 12:17:10 +0000 (08:17 -0400)]
progressbar: Avoid redundant storage
GtkBoxLayout stores the orientation; no need for
GtkProgressBar to duplicate that.
Matthias Clasen [Tue, 1 Jun 2021 20:17:16 +0000 (20:17 +0000)]
Merge branch 'demo-appdata' into 'master'
demos: Generate appdata
Closes #3993
See merge request GNOME/gtk!3613
Matthias Clasen [Tue, 1 Jun 2021 12:16:27 +0000 (08:16 -0400)]
demos: Generate appdata
We don't maintain a release history here, but at least
we can put in the right version and date for the current
build.
Fixes: #3993
Matthias Clasen [Tue, 1 Jun 2021 18:28:23 +0000 (18:28 +0000)]
Merge branch 'wip/chergert/switcher-orientable' into 'master'
stackswitcher: implement GtkOrientable
Closes #3988
See merge request GNOME/gtk!3606